package cn.java76.springboot.demo1.dao;

import cn.java76.springboot.demo1.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OUnitMapper {
    //查询
    public List<OUnit> find(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name, @Param("majorid") String majorid, @Param("stardate") Date stardate, @Param("enddate") Date enddate);
    //统计
    public int findTotal(@Param("name") String name, @Param("majorid") String majorid, @Param("stardate") Date stardate, @Param("enddate") Date enddate);
    //删除
    public int del(long id);
    //添加
    public int add(OUnit ounit);
    //更新
    public int update(OUnit ounit);
    //查找单个
    public OUnit get(long id);

    public List<OUnit> findname();
}
